package com.technique.api.model;

public class User {

	private long uid;
	
	private String userName;
	
	private String email;
	
	private String phone;

	public User(){
		
	}
	
	public User(com.monkeyk.sos.domain.user.User user ){
		if(user == null){
			throw new IllegalArgumentException("user cannot be null");
		}
		this.uid = user.id();
		this.userName = user.username();
		this.phone = user.phone();
		this.email = user.email();
	}
	
	public long getUid() {
		return uid;
	}

	public void setUid(long uid) {
		this.uid = uid;
	}

	public String getUserName() {
		return userName;
	}

	public void setUserName(String userName) {
		this.userName = userName;
	}

	public String getEmail() {
		return email;
	}

	public void setEmail(String email) {
		this.email = email;
	}

	public String getPhone() {
		return phone;
	}

	public void setPhone(String phone) {
		this.phone = phone;
	}

	@Override
	public String toString() {
		return "User [uid=" + uid + ", userName=" + userName + ", email=" + email + ", phone=" + phone + "]";
	}
	
	
	
}
